<?php
header("Content-type:text/html;charset=utf-8");
class Mm{
public function curl_post($url,$array){  
        
        $curl = curl_init();   
        //设置提交的url  
        curl_setopt($curl, CURLOPT_URL, $url);
        //设置头文件的信息作为数据流输出  
        curl_setopt($curl, CURLOPT_HEADER, 0);  
        //设置获取的信息以文件流的形式返回，而不是直接输出。  
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
        //设置post方式提交  
        curl_setopt($curl, CURLOPT_POST, 1);  
        //设置post数据  
        $post_data = $array;  
        curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);  
        //执行命令  
        $data = curl_exec($curl);  
        //关闭URL请求  
        curl_close($curl);  
        //获得数据并返回  
        return $data; 
        
    }
}
$result = new Mm();
if(isset($_POST['Id'])){
     $array = array("Id"=>$_POST['Id']);
}else{
    $array = array();
}
if(isset($_POST['funcName'])){
     $funcName = $_POST['funcName'];
}
$url = "http://42.121.2.169/cd2016/client/VrContent/".$funcName;
$data = $result->curl_post($url,$array);
echo $data;


?>